Online IVR Tutorial
Built-in Commands


        Following are the built-in commands supported by the Xtend IVR engine.


Answer command causes the script to pickup the phone line.
Syntax
Answer [number of rings]

Tell me more!

The beep command produces a beep sound on the auxiliary multimedia device or on the phone line if connected.
Syntax
Beep <frequency> <duration>

Tell me more!

BgPlay command plays the specified .wav file in the background.
Syntax
BgPlay <wave file>

Tell me more!

BgVolume command adjusts the background play back volume.
Syntax
BgVolume <percent>

Tell me more!

Bp (Break Point) command automatically sets a break point inside the script.
Syntax
Bp

Tell me more!

The Break command will cause the execution of the script to break out of the current WHILE loop.
Syntax
Break

Tell me more!

The Clear command will immediately clear any pending ON, PLAY, RECORD and SPEAK commands and removes any pending keys from the input queue.
Syntax
Clear

Tell me more!

The Continue command will continue the looping in the While loop.
Syntax
Continue

Tell me more!

Display command prints messages in the Display area of the Main window.
Syntax
Display <string>

Tell me more!

The Exit command will cause the execution of the script to break out of the current WHILE loop.
Syntax
Exit

Tell me more!

The Function command identifies the start of a user-defined function.
Syntax
Function FunctionName ( Parameters )
<statements>
Return [Expression]

Tell me more!

The Goto command causes the script to jump to the specified label and start execution from that position.
Syntax
Goto <label>

Tell me more!

Hangup command hangs up the call.
Syntax
Hangup

Tell me more!

The Load command will load all variables from the given file.
Syntax
Load <filename>

Tell me more!

The Log command will log the given text into the log file maintained in the log directory.
Syntax
Log <string | variable>

Tell me more!

The Loop command will continue the looping in the While loop.
Syntax
Loop

Tell me more!

On command will cause a jump to the specified <label> if the given <key> has been pressed.
Syntax
On <key> Goto <label>

Tell me more!

Play command will playback the specified .wav file on the phone line.
Syntax
Play <wavefile>

Tell me more!

The Record command will record the incoming voice.
Syntax
Record <seconds>

Tell me more!

The Reject command rejects the incoming calls.
Syntax:
Reject

Tell me more!

The Restart command restarts Xtend IVR from Script.
Syntax
Restart

Tell me more!

The Run command will execute the specified program.
Syntax
Run <exe file>
or
! <exe file>

Tell me more!

The Runtimeout command sets the timeout in seconds for any subsequent RUN commands.
Syntax
Runtimeout <seconds>

Tell me more!

The Save command will save all variables to the given file.
Syntax
Save <filename>

Tell me more!

The Sleep command suspends the execution of the current script for a specified interval.
Syntax
Sleep <duration>

Tell me more!

The SleepEvent command suspends the execution of the current script for a specified interval of time or until an event occurs.
Syntax
SleepEvent <duration>

Tell me more!

The Speak command will speak out the given text.
Syntax
Speak [String]

Tell me more!

The Timeout command sets the timeout for an incoming call in seconds.
Syntax
Timeout <seconds>

Tell me more!

The VoiceLog command will log the telephony audio to a specified file.
Syntax
VoiceLog <wave file>

Tell me more!

Volume command will adjust the playback volume of the specified .wav file.
Syntax
Volume <percent>

Tell me more!

The Wait command will wait for the specified number of milliseconds.
Syntax
Wait <milliseconds>

Tell me more!